@extends('layouts.master')

@section('title')
管理员模块——木投网商城管理后台
@stop

@section('app_css')
<link href="/resource/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/resource/css/style.css">
<link rel="stylesheet" href="/resource/css/dataTables.bootstrap.css">
<link href="/resource/css/bootstrap-datetimepicker.css" rel="stylesheet">
@stop

@section('app_js')

@stop


@section('content')
@include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.service_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>其他 > 广告位管理
            </div>
            <div class="contentNav">
              <ul>
                <li>其他</li>
                <li class="btn btn-default active"><a href="/show_ads">列表</a></li>
                <li class="btn btn-default"><a href="/add_ads">新增</a></li>
              </ul>
            </div>
            <div class="contentMember">
              <hr>
              <table class="table table-striped table-bordered bootstrap-datatable datatable table-hover" id="example">
                <thead>
                  <tr>
                    <th>名称</th>
                    <th>链接</th>
                    <th>排序</th>
                    <th>操作</th>
                  </tr>
                </thead>
                  @foreach($ads as $k => $ad)
                  <tr>
                    <td>{{ $ad->ads_name }}</td>
                    <td>{{ $ad->url }}</td>
                    <td>{{ $ad->order_by }}</td>
                    <td><a href="/edit_ads?ads_id={{ $ad->ads_id }}">编辑</a> <a href="/delete_ads?ads_id={{ $ad->ads_id }}">删除</a></td>
                  </tr>
                  @endforeach
                <tbody>
                </tbody>
              </table>
            </div>
            {{ $ads->links() }}
        </div>
    </div>
</div>
@stop